package com.aliang.shardingjdbcdemo.controller;

import com.aliang.shardingjdbcdemo.entity.Order;
import com.aliang.shardingjdbcdemo.dao.OrderMapper;
import com.aliang.shardingjdbcdemo.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: chendongliang
 * @Date: 2019/8/23 15:04
 */
@RestController
@RequestMapping("")
public class OrderController {


    @Autowired
    OrderService orderService;

    @RequestMapping("/getOrders")
    public void getOrders(){
        Order order = new Order();

       orderService.getOrders(order);


    }


}
